package com.blog.feign;

import com.blog.common.CommonRespDto;
import com.blog.seckill.orders.GoodRequest;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("service-sec-orders")
public interface OrderFeignClient {
    @PutMapping("/orders/createOrderAi")
    public CommonRespDto createOrderAi(
            @RequestParam("goodId") Integer goodId,
            @RequestParam("goodNum") Integer goodNum,
            @RequestParam("userId") Integer userId);
}
